var task = new Object("task","#000","#666",taskAction,taskDraw);

function taskAction(x,y,direction)
{
	window.game.info[0]=window.game.task;
	window.game.table[x][y]=0;
	return false;
}

function taskDraw(context,x,y,width,height)
{
	context.beginPath();
	context.lineWidth=height/10;
	context.moveTo(x+(width*.2),y+(height*.3));
	context.lineTo(x+(width*.2),y+(height*.1));
	context.lineTo(x+(width*.7),y+(height*.1));
	context.lineTo(x+(width*.7),y+(height*.5));
	context.lineTo(x+(width*.4),y+(height*.5));
	context.lineTo(x+(width*.4),y+(height*.7));
	
	context.moveTo(x+(width*.4),y+(height*.8));
	context.lineTo(x+(width*.4),y+(height*.9));
	
	context.stroke();
}

window.game.addObject( task );